﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using NetROS.Tiers.Services;
using Microsoft.Practices.CompositeUI;
using NetROS.Tiers.Entities;

namespace NetRosApp.PlaPart.Views.ObracunView
{
    public partial class SpecifikacijaPlacaFrm : DevExpress.XtraEditors.XtraForm
    {

        public SpecifikacijaPlacaFrm(TList<Sifarnik> banke)
        {
            InitializeComponent();
            bindingSource1.DataSource = banke;
        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                this.DialogResult = DialogResult.OK;
                this.Hide();
            }
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        private void SpecifikacijaPlacaFrm_Load(object sender, EventArgs e)
        {
            lkpBanka.ItemIndex = 0;
        }
    }
}